using UnityEngine;

public class Door : MonoBehaviour
{
    private Animator _animator;

    private void Awake()
    {
        _animator = GetComponent<Animator>();
    }

    // 菜单选项，用于在编辑器中手动调用Open方法
    [ContextMenu("Open")]
    public void Open()
    {
        _animator.SetTrigger("open");
    }
}